#include "stdafx.h"
#include "TestZone.h"
#include "Zone.h"
#include "SmartPointer.h"

CPPUNIT_TEST_SUITE_REGISTRATION( TestZone );
using namespace PDMS::PDMSDomain;
using namespace PDMS::PDMSFrame;

TestZone::TestZone()
{
}


TestZone::~TestZone()
{
}

void TestZone::TestZoneReg()
{
	Tree* pTree = PDMSClassRegister::Instance()->CreateObject("Zone");
	Zone* pZone =static_cast< Zone*>(pTree) ;
	CPPUNIT_ASSERT( pZone != NULL );
	UeSmartPtr<Zone> SmartObject(pZone);
	CPPUNIT_ASSERT( pZone->IsKindOf( UE_RUNTIME_CLASS( Zone ) ) );
}
